package com.ruoyi.mes.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 生产计划对象 prog_plan
 *
 * @author LongAndHao
 * @date 2023-04-04
 */
public class ProgPlan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNumber;

    /** 计划名称 */
    @Excel(name = "计划名称")
    private String progName;

    /** 产品Id */
    @Excel(name = "产品Id")
    private Long proId;

    /** 计划生产数量 */
    private Long progQuantity;

    /** 产品类型 */
    private Long proType;

    /** 生产计划编号 */
    @Excel(name = "生产计划编号")
    private String progCode;

    /** 开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date overTime;

    /** 状态  0 - 未下达 1 - 已下达*/
    @Excel(name = "状态")
    private Long status;

    /** 产品名称 */
    @TableField(exist = false)
    @Excel(name = "产品名称")
    private String proName;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public String getProgName() {
        return progName;
    }

    public void setProgName(String progName) {
        this.progName = progName;
    }

    public Long getProId() {
        return proId;
    }

    public void setProId(Long proId) {
        this.proId = proId;
    }

    public Long getProgQuantity() {
        return progQuantity;
    }

    public void setProgQuantity(Long progQuantity) {
        this.progQuantity = progQuantity;
    }

    public Long getProType() {
        return proType;
    }

    public void setProType(Long proType) {
        this.proType = proType;
    }

    public String getProgCode() {
        return progCode;
    }

    public void setProgCode(String progCode) {
        this.progCode = progCode;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getOverTime() {
        return overTime;
    }

    public void setOverTime(Date overTime) {
        this.overTime = overTime;
    }

    public Long getStatus() {
        return status;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNumber", getOrderNumber())
            .append("progName", getProgName())
            .append("proName", getProName())
            .append("progQuantity", getProgQuantity())
            .append("proType", getProType())
            .append("progCode", getProgCode())
            .append("startTime", getStartTime())
            .append("overTime", getOverTime())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
